import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		name: 'home',
		redirect: '/portal-designer',
		children: [
			{
				path: '/portal-designer',
				name: 'PortalDesigner',
				component: () => import('@/views/portal-designer/index.vue')
			}
		]
	}
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router
